package org.com.android.db;

import java.util.ArrayList;
import java.util.Map;

import android.database.Cursor;
import android.util.Log;

public class Entity implements Itable {
	public final String name = "Entity" ;
	public final String primarykey = "_id" ;
	
	private final Schema schema ;
	public Entity(Schema schema){
		this.schema = schema ;
	}

	public boolean delete(Map<String, String> item) {
		Log.e("Entity.delete","you should never come here") ; 
		return false;
	}

	public boolean insert(Map<String, String> item) {
		if (item == null){
			return false ;
		}
		String id = item.get("_id") ;
		String name = item.get("name") ;
		//schema.getdatabaseforwrite().insert(table, nullColumnHack, values);
		return false;
	}

	public Cursor query(String[] columns, String selection,
			String[] selectionArgs, String groupBy, String having,
			String orderBy) {
		// TODO Auto-generated method stub
		return null;
	}

	public ArrayList<Map<String, String>> query(String[] columns,
			String selection, String[] selectionArgs, String groupBy,
			String having, String orderBy, Integer limit) {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean update(Map<String, String> item) {
		// TODO Auto-generated method stub
		return false;
	}
	
}